<?php
class Goods_provider_seller_model extends CI_Model
{
    private $table = 'goods_provider_seller';
    
    public function findByParams($params=array())
    {
        if (!empty($params['seller_id'])) {
            $this->db->where('seller_id', $params['seller_id']);
        }
        if (!empty($params['goods_id'])) {
            $this->db->where('goods_id', $params['goods_id']);
        }
        if (!empty($params['seller_id'])) {
            $this->db->where('seller_id', $params['seller_id']);
        }
        return $this->db->get($this->table);
    }
}